#include "stdafx.h"
#include "VPlayer.h"

CVPlayer::CVPlayer()
{
}

CVPlayer::CVPlayer(CDuiString skinName)
{
	if (skinName)
		mSkinFileName = skinName;
}

CVPlayer::~CVPlayer()
{
}

LPCTSTR CVPlayer::GetWindowClassName() const
{
	return _T("VPlayer");
}

CDuiString CVPlayer::GetSkinFile()
{
	if (mSkinFileName)
		return mSkinFileName;
	else
		return _T("");
}

void CVPlayer::SetDpi(int dpi)
{
	mDpi = dpi;
}

void CVPlayer::InitWindow()
{
	//m_pm.SetDPI(mDpi);

	//CRect r,parentRect;
	//GetWindowRect(GetParent(m_hWnd), parentRect);
	//GetWindowRect(m_hWnd, r);
	//::MoveWindow(m_hWnd, (parentRect.Width() -r.Width())/2, r.top,r.Width() ,r.Height(), true);
}


